package model

import "time"

type Book struct {
	UserId            string    `json:"userId" gorm:"column:user_id"`
	WriterName        string    `json:"writerName" gorm:"column:writer_name"`
	BookName          string    `json:"bookName" gorm:"column:book_name; type:varchar(256)"`
	BriefIntroduction string    `json:"briefIntroduction" gorm:"column:brief_introduction;type:text"`
	StoryCore         string    `json:"storyCore" gorm:"column:story_core;type:varchar(100)"`
	IsDeleted         bool      `json:"isDelete" gorm:"column:is_deleted"`
	ChapterCount      int64     `json:"chapterCount" gorm:"column:chapter_count"`
	CreateAt          time.Time `json:"createAt" gorm:"column:create_at; default:null"`
	UpdateAt          time.Time `json:"updateAt" gorm:"column:update_at;default:null"`

}
